GUI Help > Events > eventType

eventType
int type=eventType()

Description:
Retrieves a code specifying the kind of event which happened, eg: mouse click, key press, mouse move.

The constants gui.dba file contains the codes for the most common events which happen eg:

MOUSE_CLICK - User left-clicked gadget
MOUSE_MOVE - Mouse was moved over gadget
KEYDOWN - User pressed a key when gadget was active
KEYUP - User released a key when gadget was active
RIGHTMOSE_CLICK - User right-clicked gadget
GADGET_SIZE - Gadget resized
WINDOW_CLOSE - User clicked red "close" button on a window gadget


Return Value:
See Above

Parameters:
Remarks:


See Also:


Example:
(Note: You will need to include the GUI constants file for this example to work)